package com.zmn.oms.services.impl.masternotice;

import com.zmn.oms.model.entity.masternotice.MasterNoticeHistory;
import com.zmn.oms.model.entity.masternotice.MasterNoticeHistoryQuery;
import com.zmn.oms.persistence.interfaces.masternotice.MasterNoticeHistoryDao;
import com.zmn.oms.services.interfaces.masternotice.MasterNoticeHistoryService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
* @author rananquan
* @description 针对表【oms_master_notice_history(工程师安全提示记录表)】的数据库操作Service实现
* @createDate 2022-08-02 14:39:57
*/
@Slf4j
@Service
public class MasterNoticeHistoryServiceImpl implements MasterNoticeHistoryService {
    @Resource
    private MasterNoticeHistoryDao masterNoticeHistoryDao;

    @Override
    public List<MasterNoticeHistory> listByQuery(MasterNoticeHistoryQuery query) {
        return masterNoticeHistoryDao.listByQuery(query);
    }

    @Override
    public int insert(MasterNoticeHistory masterNoticeHistory) {
        return masterNoticeHistoryDao.insert(masterNoticeHistory);
    }

    @Override
    public int updateByKey(MasterNoticeHistory masterNoticeHistory) {
        return masterNoticeHistoryDao.updateByKey(masterNoticeHistory);
    }

    @Override
    public int deleteBatch(List<Integer> configIds) {
        return masterNoticeHistoryDao.deleteBatch(configIds);
    }
}
